<template>
	<view>
		<view class="item" @click="updadmin('张三')">
			张三
			<u-icon name="arrow-right"></u-icon>
		</view>
		<view class="item" @click="updadmin('李四')">
			李四
			<u-icon name="arrow-right"></u-icon>
		</view>
		<view class="item" @click="updadmin('王五')">
			王五
			<u-icon name="arrow-right"></u-icon>
		</view>
		<view class="item" @click="updadmin('赵六')">
			赵六
			<u-icon name="arrow-right"></u-icon>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			updadmin(e) {
				// 调用管理员修改接口
				console.log('总经理修改为：' + e);
				// 成功回调
				uni.navigateTo({
					url: '../businessManagement'
				})
			}
		}
	}
</script>

<style>
	.item {
		display: flex;
		justify-content: space-between;
		align-items: center;
		text-align: end;
		padding-right: 30rpx;
		margin-left: 30rpx;
		line-height: 100rpx;
		border-bottom: #d4d4d4 1rpx solid;
	}
</style>
